home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / utils / sound / convrtr / amiga / amisox_w / makefile.uni < prev    next >
Encoding:
Makefile  |  1992-05-12  |  2.2 KB  |  95 lines

  1.  
  2. # Sound Tools Makefile
  3. #     builds libst.a and sox
  4.  
  5. #added wav.c --dgc, 13 May 1992
  6. FSRC= raw.c voc.c au.c sf.c aiff.c hcom.c 8svx.c sndrtool.c wav.c
  7. ESRC= copy.c avg.c pred.c stat.c vibro.c echo.c rate.c band.c lowp.c 
  8. PSRC= sox.c
  9.  
  10. SOURCES   = $(PSRC) $(FSRC) $(ESRC) handlers.c libst.c misc.c getopt.c
  11.  
  12. HEADERS   = st.h libst.h sfheader.h patchlevel.h 
  13.  
  14. TESTS     = 
  15.  
  16. MISC      = README TODO sox.man st.man Makefile
  17.  
  18. SKEL      = skel.c skeleff.c
  19.  
  20. FILES     = $(MISC) $(HEADERS) $(SOURCES) $(SKEL) $(TESTS)
  21.  
  22. #added wav.o --dgc, 13 May 1992
  23. FOBJ= raw.o voc.o au.o sf.o aiff.o hcom.o 8svx.o sndrtool.o wav.o
  24. EOBJ= copy.o avg.o pred.o stat.o vibro.o echo.o rate.o band.o lowp.o 
  25.  
  26. SOUNDLIB  = libst.a
  27. LIBOBJS   = $(FOBJ) $(EOBJ) handlers.o libst.o misc.o getopt.o
  28.  
  29. #
  30. # System dependency parameters
  31. #     not many, we don't mess with devices
  32. #
  33. # include -DSYSV for AT&T Unix System V
  34. #
  35. # define -DDOS  to compile on PC
  36. # defines .snd to mean a DOS soundtool file (starts with SOUND)
  37.  
  38. # define -DNeXT on a NeXT workstation
  39. # defines .snd to mean a NeXT sound format file
  40. #      only knows a few real sound formats.
  41.  
  42. # define -DMAC on a MacIntosh
  43. # defines .snd to mean a Mac-style headerless unsigned byte
  44. #      sample, probably at 11050 hertz.  You'll have to set 
  45. #    the speed on the command line.
  46.  
  47.  
  48. # AT&T System V/386 parameters, salt to taste
  49. # Most System V machines should use these flags
  50.  
  51. O=-g        # optimization flags
  52.  
  53. CFLAGS    = $O -DBSD
  54. CC        = cc
  55. AR        = ar r
  56. RANLIB    = ranlib
  57.  
  58. # BSD-ish, salt to taste
  59. # Sun, NeXT, Vax, Ultrix uses these
  60.  
  61. # CFLAGS    = $O 
  62. # CC        = cc
  63. # AR        = ar r
  64. # RANLIB    = ranlib
  65.  
  66. # DOS? Mac? They generally have their own makefile formats.
  67. # I think you'll have to write one from scratch.
  68.  
  69. # For DOS, you'll need -DDOS for all files.
  70.  
  71. all: sox
  72.  
  73. sox: sox.o $(SOUNDLIB)
  74.     $(CC) $(CFLAGS) -o sox sox.o $(SOUNDLIB) -lm
  75.  
  76. $(SOUNDLIB): $(LIBOBJS)
  77.     rm -f $(SOUNDLIB)
  78.     $(AR) $(SOUNDLIB) $(LIBOBJS)
  79.     $(RANLIB) $(SOUNDLIB)
  80.  
  81. sox.o:        sox.c st.h
  82.  
  83. $(LIBOBJS):    st.h
  84.  
  85. clean:
  86.     rm -f *.o
  87.     rm -f *.raw
  88.     rm -f *.sf
  89.     rm -f core
  90.  
  91. # Shar: -F (prefix all lines with X), 
  92. #     -s addr (set return addr of poster)
  93. shar: $(FILES)
  94.     /usr2/tools/shar/shar -M -F -l 50 -o shar -n soundtools_v4 -s thinman@netcom.com $(FILES)
  95.